package com.initial.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.initial.entity.TbCrmCustomer;
import com.initial.service.TbCrmCustomerService;
import com.initial.mapper.TbCrmCustomerMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 余小年
* @description 针对表【tb_crm_customer】的数据库操作Service实现
* @createDate 2021-12-14 17:22:00
*/
@Service
public class TbCrmCustomerServiceImpl extends ServiceImpl<TbCrmCustomerMapper, TbCrmCustomer>
    implements TbCrmCustomerService{

    /*@Override
    public IPage<TbCrmCustomer> selectCustomer(Page<TbCrmCustomer> page) {
        return baseMapper.selectCustomer(page);
    }*/

    @Override
    public IPage<TbCrmCustomer> selectCustomer(String name, String addr, String time, String industry, Page<TbCrmCustomer> page) {
        return baseMapper.selectCustomer(name,addr,time,industry,page);
    }

    @Override
    public TbCrmCustomer selectCustomerById(Integer id) {
        return baseMapper.selectCustomerById(id);
    }
}




